<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function a() {
        for (var i = 0; i <= arguments.length - 1; i++) {
          for (var b = 0; b <= arguments.length - i - 1; b++) {
            if (arguments[b] > arguments[b + 1]) {
              var c = arguments[b];
              arguments[b] = arguments[b + 1];
              arguments[b + 1] = c;
            }
          }
        }
        return arguments;
      }

      console.log(a(1, 2, 5, 9, 3));
    </script>
  </body>
</html>
